package ls.ch03.demo.demo9;

import ls.ch03.demo.demo6.Buyer;
import ls.ch03.demo.demo8.IntermediaryJdkProxyFactory;
import ls.ch03.demo.demo8.RealBuyer;
import ls.ch03.demo.demo8.Test8;
import org.apache.log4j.Logger;

/**
 * @author ls
 * @Date 创建时间:2022/4/9 14:27
 * 描述:
 */

public class Test9 {
    private static Logger logger = Logger.getLogger(Test9.class);
    public static void main(String[] args) {
        Buyer buyer = IntermediaryJdkProxyFactory.create(new RealBuyer());
        String result = buyer.havealook();
        logger.debug(result);
    }
}
